package com.apisix.service.repository;

import com.apisix.service.entity.Upstream;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface UpstreamRepository extends JpaRepository<Upstream, Long> {
    Optional<Upstream> findByUpstreamId(String upstreamId);
    boolean existsByUpstreamId(String upstreamId);
} 